import re

with open(r'c:\tools\output_from_cli.txt') as output:
	#整个文本读进来
	output_text=output.read()

print(output_text)


result=re.finditer(r'(\S+) +'
				   # r'([\d./]+) +'
				   r'([\d./]+) +'
				   r'(up|down|\*down) +'
				   r'(up|down)',
				   output_text)

print(result)
print(type(result))


for match in result:
	print(match)
